package dao;

import com.google.inject.ImplementedBy;
import models.*;
import services.TruckInfo_Repository_JPA;

import java.util.List;
import java.util.concurrent.CompletionStage;

/**
 * This interface provides a non-blocking API for possibly blocking operations.
 */
@ImplementedBy(TruckInfo_Repository_JPA.class)
public interface TruckInfo_Repository {

    CompletionStage<List<Truck_P_Entity>> getTruckList (Integer GPSFlag);
    CompletionStage<List<VehicleInfo_P_Entity>> getTruckPlace (String truckNumber);
    CompletionStage<String> boundTruckAndQRcode(String truckNumber,String GPSId,String SimNo,String Industry,String phoneNumber,String latitude,String longitude);

}
